package csc.com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import csc.com.dao.EmployeeDAO;
import csc.com.model.Employee;

public class EmployeeService{
	
	private EmployeeDAO employeeDAO;

	public EmployeeDAO getEmployeeDAO() {
		return employeeDAO;
	}
	@Autowired
	public void setEmployeeDAO(EmployeeDAO employeeDAO) {
		this.employeeDAO = employeeDAO;
	}
	
	public void addEmployee(String id, String name, String address, String phone,
			String email) {
		employeeDAO.addEmployee(id, name, address, phone, email);
	}

	public List<Employee> getEmployees() {
		return employeeDAO.getEmployees();
	}
	public void deleteEmployee(String employeeid) {
		employeeDAO.deleteEmployee(employeeid);
	}
}
